package com.xbongbong.sys.domain.dao;

import com.xbongbong.sys.domain.entity.FeeEntity;
import com.xbongbong.sys.domain.entity.FeeLogEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @Author: hongxiao
 * @date: 2019-01-14 21:59
 */
@Repository
@Mapper
public interface FeeLogDao {
    Integer insert(FeeLogEntity feeLog);

    Integer update(FeeLogEntity feeLog);

    Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

    FeeLogEntity getByKey(@Param("key") Long key,  @Param("corpid") String corpid);

    List<FeeLogEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    List<FeeLogEntity> getByType(@Param("corpid") String corpid, @Param("feeType") int type);
}
